package com.java83.service.impl;

import com.java83.dao.LeavingDao;
import com.java83.entity.Employee;
import com.java83.entity.Leaving;
import com.java83.service.LeaveManagementService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author ytg
 * @version 1.0.0
 * @ClassName LeaveManagementServiceImpl
 * @Description 离职管理Service实现类
 * @createTime 2021年12月14日 16:27:00
 */
@Service("leaveManagementService")
public class LeaveManagementServiceImpl implements LeaveManagementService {

    @Resource
    LeavingDao leavingDao;
    /**
     * 根据条件分页查询
     * @param employee
     * @param leaving
     * @return
     */
    @Override
    public List<Map<String, Object>> findByLimit(Employee employee, Leaving leaving) {
        return leavingDao.findByLimit(employee, leaving);
    }
}
